/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff9f0;
    background-image: 
        radial-gradient(#ffecb3 0.5px, transparent 0.5px),
        radial-gradient(#ffecb3 0.5px, #fff9f0 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部 */
.header {
    background-image: url(./assets/风景.jpg);
    background-size: cover;
    background-position: 60% 80%;
    height:  50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    background-image: inherit;
    background-size: cover;
    background-position: 60% 80%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    filter: brightness(0.8); /* 降低背景亮度，使文字更清晰 */
}

.header h1 {
    font-size: clamp(2.5rem, 10vw, 8rem); /* 使用clamp函数设置响应式字体大小 */
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
   
    /* 文字镂空效果 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* 添加文字阴影增强可读性 */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.617);
    
    /* 背景图与文字同步 */
    background-image: inherit;
    background-size: cover;
    background-position: 60% 60%;
}

 /* 标题动画 */
        .animated-title {
            font-size: clamp(2.5rem, 10vw, 8rem);
            font-weight: 700;
            text-align: center;
            margin: 0;
            padding: 0 1rem;
            
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            
            background-image: inherit;
            background-size: cover;
            background-position: center;
            
            /* 渐显动画 */
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 1s ease-out forwards;
        }

        .animated-subtitle {
            letter-spacing: 0.5rem;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            font-size: clamp(1rem, 2vw, 1.5rem);
            max-width: 80%;
            text-align: center;
            
            /* 渐显动画（延迟0.3秒） */
            opacity: 0;
            transform: translateY(20px);
            animation: fadeUp 1s ease-out 0.3s forwards;
        }

        /* 滚动指示器 */
        .scroll-indicator {
            position: absolute;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 2rem;
            animation: bounce 2s infinite;
        }

        /* 元素进入动画 */
        .reveal-item {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .reveal-item.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* 动画关键帧 */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0) translateX(-50%);
            }
            40% {
                transform: translateY(-20px) translateX(-50%);
            }
            60% {
                transform: translateY(-10px) translateX(-50%);
            }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .header {
                height: 60vh;
            }
            
            .animated-title {
                font-size: clamp(2rem, 8vw, 5rem);
            }
            
            .animated-subtitle {
                letter-spacing: 0.3rem;
                font-size: 1rem;
            }
        }



/* 导航栏 */
.nav {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(255, 183, 77, 0.15); /* 浅橙色阴影 */
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-title {
    color: #ff8f00; /* 暖橙色标题 */
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ff8f00;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e65100; /* 深橙色文字 */
    padding: 0.8rem 1.2rem;
    border-radius: 20px; /* 圆角按钮效果 */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    background-color: #fff3e0; /* 浅橙色背景 */
    color: #e65100;
    transform: translateY(-2px);
}

/* 主内容区 */
.main-content {
    padding: 2rem 0;
}

.section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4fc3f7, #81d4fa); /* 蓝色分隔线 */
}

.section h2 {
    color: #0277bd; /* 深蓝色标题 */
    font-size: 2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 1.2rem;
    text-align: center;
    background-color: white;
    color: #3e2723; /* 深棕色文字 */
    font-size: 1rem;
    font-weight: 500;
}

/* 信息卡片 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background-color: white;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    border-top: 6px solid #4fc3f7; /* 蓝色顶边 */
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #e65100;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.info-card p {
    color: #5d4037; /* 棕灰色文字 */
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.info-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1.2rem;
    color: #5d4037;
}

.info-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul li::before {
    content: "🌴"; /* 椰树图标 */
    font-size: 1.2rem;
}

.price {
    color: #d32f2f;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.2rem 0;
    padding: 0.8rem;
    background-color: #fff3e0;
    border-radius: 10px;
    display: inline-block;
}

/* 时间线 */
.timeline {
    position: relative;
    margin: 2.5rem 0;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #4fc3f7, #81d4fa);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '☀️'; /* 太阳图标 */
    position: absolute;
    left: -3rem;
    top: -5px;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border-left: 4px solid #ffb74d; /* 浅橙色边框 */
}

.timeline-content p {
    color: #5d4037;
    margin-top: 0.8rem;
}

/* 按钮 */
.btn {
    background: linear-gradient(135deg, #ff8f00, #ffb74d); /* 橙色渐变按钮 */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 143, 0, 0.3);
}

/* 页脚 */
.footer {
    background-image: url(./assets/黄昏码头.jpg);
    background-size: cover;
    background-position: 60% 60%;
    height:  30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    border-radius: 20px 20px 0 0;

}

.footer p {
    margin: 0.8rem 0;
    font-weight: 300;
    font-size: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-top: 1px solid #fff3e0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        border-radius: 0;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}